export interface ITodo {
  value: string,
  completed: boolean,
  id: number
}
export interface IState {
  todoList: ITodo[]
}

export interface IAction {
  type: ACTION_TYPE,
  payload: ITodo | number
}
export const enum ACTION_TYPE {
  ADD_TODO = 'add_todo',
  REMOVE_TODO = 'remove_todo',
  TOGGLE_TODO = 'toggle_todo'
}